﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BallData
{
    public class Bet007_Odds1x2
    {
        public String mId;
	    public String cId;
        // 分别是即时 主胜,平局,客胜
	    public String hwF;
	    public String stF;
	    public String awF;
	    public String hw;
	    public String st;
        public String aw;
        public Bet007_Odds1x2(String infoStr)
        {
            String[] infoArr = infoStr.Split(OddsUntil.Bet007_SplitColumn); //209092,8,2.25,3.95,2.95,2.25,3.025,2.875
            this.mId = infoArr[0];
            this.cId = infoArr[1];
            this.hwF = infoArr[2];
            this.stF = infoArr[3];
            this.awF = infoArr[4];
            this.hw = infoArr[5];
            this.st = infoArr[6];
            this.aw = infoArr[7];
        }
        // 得到主胜
        public String gethostodds(bool b)
        {
            if(b)
                return this.hwF;
            else
                return this.hw;
        }
        // 得到客胜
        public String getvisitodds(bool b)
        {
            if (b)
                return this.awF;
            else
                return this.aw;
        }
        // 得到平局
        public String getpeaceodds(bool b)
        {
            if (b)
                return this.stF;
            else
                return this.st;
        }
	
    }
}
